package com.ems.mapper;

import com.ems.entity.TEmp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZZH
 * @since 2022-06-27
 */
@Mapper
public interface TEmpMapper extends BaseMapper<TEmp> {

    int countWork();

    int countNoWork();

    List<TEmp> selectBynumOrName(@Param("name")String name);

    TEmp selectByCode(@Param("code")Integer code);

    int countFree();

    int quitWork();

    int leaveEmp();


}
